!function () {
    var ua = navigator.userAgent;
    $('p').text(ua);
    if (/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)) {
        var height = $(window).height() + 1;
        var content = $('meta[name=viewport]').attr('content') + ',height=' + height;
        $('meta[name=viewport]').attr('content', content);
    }
}();
